package com.base.cn.platform.os.entity.qa.record;

import com.base.cn.platform.os.entity.qa.question.QaQuestion;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 问答讲师分成记录Entity
 * @author LIZHIPENG
 * @since 2018/5/2
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class QaTeacherCommission extends QaRecordBaseEntity {

    /**问题ID*/
    private BigDecimal questionId;
    /**付费用户ID*/
    private BigDecimal userId;
    /**收益分成金额*/
    private Double price;
    /**分成比例*/
    private Double scale;
    /**提现记录ID*/
    private BigDecimal recordId;

    //================= 扩展数据 =================
    /**对应问题*/
    private QaQuestion qaQuestion;
    /**提问人*/
    private Map<String, Object> userMap;
    /**收益讲师*/
    private Map<String, Object> teacherMap;

    //================= 查询条件 =================

}
